package no.sachmuld.methodcombination.impl.validate;

import no.sachmuld.methodcombination.api.BehaviourMethod;

/**
 *
 */
public class BehaviourMethodIsStatic extends MethodCombinationValidationError {
    private BehaviourMethod behaviourMethod;
    public BehaviourMethodIsStatic(Class targetClass, BehaviourMethod behaviourMethod) {
        super(targetClass);
        this.behaviourMethod = behaviourMethod;
    }

    @Override
    public String toString() {
        return "Method " + behaviourMethod.getMethod().getName() + " in behaviour class " + behaviourMethod.getBehaviourClass().getName() + " is static";
    }
}
